package com.admin.gen.mapper;

import com.admin.gen.dto.TableInfo;
import com.admin.gen.entity.ColumnInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author sq-lan
 */
@Mapper
public interface ColumnInfoMapper extends BaseMapper<ColumnInfo> {

    /**
     * 表-元数据
     *
     * @param tableName 表名称
     * @return {@link List}<{@link TableInfo}>
     */
    List<TableInfo> tablesMeta(@Param("tableName") String tableName);

    /**
     * 列-元数据
     *
     * @param tableName 表名称
     * @return {@link List}<{@link ColumnInfo}>
     */
    List<ColumnInfo> columnsMeta(@Param("tableName") String tableName);


}
